package com.victor.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.victor.entity.TicketOrders;
@Mapper
public interface TicketOrdersDao {
	/**
	 * 删除订单
	 * @param id
	 * @return
	 */
    boolean deleteByPrimaryKey(int[] id);

    int insertSelective(TicketOrders record);
    /**
     * 修改订单
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(TicketOrders record);
    /**
     * 查询全部
     * @return
     */
	List<TicketOrders> selAll(Map<Object, Object> map);
	/**
	 * 根据number查询
	 * @param number
	 * @return
	 */
	List<TicketOrders> selByNumber(String number);
	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	TicketOrders selById(Integer id);
	/**
	 * 根据时间查询
	 * @param start
	 * @param end
	 * @return
	 */
	List<TicketOrders> selByTime(String start, String end);
	/**
	 * 查询全部订单
	 * @param uid
	 * @return
	 */
	List<TicketOrders> selAllOrderByUid(String uid);
}